package com.wen.mall.controller;

import com.wen.mall.form.CartAddForm;
import com.wen.mall.vo.ResponseVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;

@Controller

@Slf4j
@ResponseBody
public class CartController {
    @PostMapping("/carts")
    public ResponseVo add(@Valid @RequestBody CartAddForm cartAddForm) {


        return null;
    }
}
